package com.peas.platform.framework.mybatisplus.repository;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.peas.platform.framework.mybatisplus.po.BasePo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface BaseRepository<P extends BasePo> extends BaseMapper<P> {

    /**
     * 自定义批量插入
     */
    int customSaveBatch(@Param("list") List<P> list);

    /**
     * 自定义批量删除
     */
    int customRemoveBatchByList(@Param("list") List<P> list);

    /**
     * 自定义批量更新，条件为主键
     */
    int customUpdateBatchById(@Param("list") List<P> list);

}
